package com.wyp.design.pattern.structural.decorator.v2;

/**
 * 抽象的装饰者，传入抽象的实体
 *
 * @author: Oliver
 * @time: 2020/5/13/16:16
 */
public class ABatterCakeDecorator extends ABatterCake {
    private ABatterCake batterCake;

    public ABatterCakeDecorator(ABatterCake batterCake) {
        this.batterCake = batterCake;
    }

    @Override
    public String getDesc() {
        return batterCake.getDesc();
    }

    @Override
    public int cost() {
        return batterCake.cost();
    }
}
